package com.ctbu.tools;

public enum HttpStatusEnum {

    SUCCESS(200,"操作成功"),
    UNAUTHORIZED(401,"认证失败"),
    FORBIDDEN(403,"权限不足"),
    INTERNAL_SERVER_ERROR(500,"服务器代码异常")
    ;
    public final Integer code;
    public final String message;

    HttpStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
